
<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
        <!-- Sidebar user panel -->
        <div class="user-panel">
            <div class="pull-left image">
                <img src="{:config('adminconfig.ImgPath')}/{:session('AI_PHOTO')}" class="img-circle" alt="User Image">
            </div>
            <div class="pull-left info">
                <p>{:session('AI_NAME')}</p>
                <a href="#"><i class="fa fa-circle text-success"></i>在线</a>
            </div>
        </div>
        <!-- search form -->
        <form action="#" method="get" class="sidebar-form">
            <div class="input-group">
                <input type="text" name="q" class="form-control" placeholder="搜索...">
                <span class="input-group-btn">
                    <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
                    </button>
                </span>
            </div>
        </form>


        <!-- /.search form -->
        <!-- sidebar menu: : style can be found in sidebar.less -->
        <ul class="sidebar-menu">
            <li class="header">主要导航</li>

            <li class="active treeview" id="1" style=" display: none">
                <a href="#">
                    <i class="glyphicon glyphicon-home"></i> <span>主页</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li class="active" id="9" style=" display: none"><a href="{:url('admin/Index/index','','')}"><i class="fa fa-circle-o"></i> 基本信息</a></li>
                    <li id="10" style=" display: none"><a href="{:url('admin/Index/shopmap','','')}"><i class="fa fa-circle-o"></i> 数据统计</a></li>
                </ul>
            </li>
            <li class="treeview" id="2" style=" display: none">
                <a href="#">
                    <i class="fa fa-files-o"></i>
                    <span>店铺管理</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li id="11" style=" display: none"><a href="{:url('admin/Store/StoreList','','')}"><i class="fa fa-circle-o"></i>店铺列表</a></li>
                    <li id="12" style=" display: none"><a href="{:url('admin/Store/AuditStore','','')}"><i class="fa fa-circle-o"></i>审核店铺</a></li>
                    <li id="13" style=" display: none"><a href="{:url('admin/Store/AssignStore','','')}"><i class="fa fa-circle-o"></i>分配店铺</a></li>
                </ul>
            </li>
            <li id="3" style=" display: none">
                <a href="">
                    <i class="fa fa-th"></i> <span>收费管理</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li id="14" style=" display: none"><a href="{:url('admin/Money/enterMoneyList','','')}"><i class="fa fa-circle-o"></i>入驻费</a></li>
                    <li id="15" style=" display: none"><a href="{:url('admin/Money/serveMoneyList','','')}"><i class="fa fa-circle-o"></i>管理费</a></li>
                </ul>
            </li>
            <li class="treeview" id="4" style=" display: none">
                <a href="{:url('admin/Admin/AdminList','','')}">
                    <i class="fa fa-user"></i> <span>AI管理员</span>
                    <span class="pull-right-container">
                        <i class="fa fa-exclamation-triangle pull-right"></i>
                    </span>
                </a>
            </li>
        </ul>
    </section>
    <!-- /.sidebar -->
    <?php $rolearray=session('AI_ROLE'); ?>
    <script type="text/javascript">
        var role = "{$rolearray}";
        var rolearray = role.split(","); //字符分割
        for (var i = 0; i < rolearray.length; i++) {
            $("#" + rolearray[i] + "").show();
        }
    </script>
</aside>


